package com.nhkj.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.nhkj.dao.CustomerDao;
import com.nhkj.entity.Customer;
import com.nhkj.service.CustomerService;

@Service
public class CustomerServiceImpl implements CustomerService {
	@Autowired
	private CustomerDao customerDao;
	
	@Override
	public Customer selectCustomerByUserNameAndPassWord(String userName, String passWord) {
		return customerDao.selectCustomerByUserNameAndPassWord(userName, passWord);
	}

	@Override
	public Double selectBalanceByCusId(Integer cusId) {
		return customerDao.selectBalanceByCusId(cusId);
	}

}
